package com.example.player.dao;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;

import com.example.player.domain.entity.SongListRela;

import io.reactivex.rxjava3.core.Completable;

/**
 * 歌单歌曲关联表dao层
 * @author 朱文权
 * */
@Dao
public interface SongListRelaDao {
    @Query("delete from song_list_rela where sid=:sid")
    Completable deleteBySid(Long sid);
    @Query("delete from song_list_rela where pid=:pid")
    Completable deleteByPid(Long pid);
    @Insert
    Completable insert(SongListRela songListRela);
}
